//
//  general data.h
//  ehubApp
//
//  Created by AonePOS on 24/09/13.
//  Copyright (c) 2013 AonePOS. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Reachability.h"
@interface general_data : NSObject
{
    NSString *OriginalbaseURLstr,*deviceID,*Datestring,*userID,*userType,*SessionID;
    NSMutableString *randomString;
   
    NSString *inventory_permission,*reports_permission,*settings_permission,*customer_permission,*allow_exit_permission,*delete_items_permission,*end_transaction_permission,*force_credit_cards_permission,*invoice_discounts_permission,*invoice_price_change_permission,*vendor_payouts_permission,*void_invoices_permission,*hold_print_permission,*end_cash_transaction_permission;
    
    NSString *switchValue;
    NSString *loginSessionID;
}

//+ (general_data *)setSession:(NSString *) SessionID;
@property(nonatomic,retain)NSString *OriginalbaseURLstr,*deviceID,*Datestring,*userID,*userType,*SessionID,*switchValue,*loginSessionID;
@property(nonatomic,retain) NSMutableString *randomString;
//@property(nonatomic,retain) NSMutableArray *HDepartmentsArray,*HitemsArray;
-(NSString *) genRandStringLength: (int) len;
-(bool)connectedToInternet;

//@property(nonatomic,retain) UIImage *PosImage;
@property(nonatomic,retain) NSString *inventory_permission,*reports_permission,*settings_permission,*customer_permission,*allow_exit_permission,*delete_items_permission,*end_transaction_permission,*force_credit_cards_permission,*invoice_discounts_permission,*invoice_price_change_permission,*vendor_payouts_permission,*void_invoices_permission,*hold_print_permission,*end_cash_transaction_permission;
+ (UIImage *)imageWithColor:(UIColor *)color;

-(NSString *)getDeviceID;
-(NSString *)getsystemDatetime;
-(BOOL)releasevariable;
-(void)GetuserDataVariablesMethod;

@end

